#include <bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10;

int r[N];
int cnt[N];

int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);

    ios::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);

    int n;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> r[i];
        cnt[r[i]]++;
    }

    int ans = 0;
    for (int i = 1; i <= 100000; i++)
    {
        int kill = (min(cnt[i], ans));
        ans -= kill;
        ans += cnt[i];
    }

    cout << ans << endl;

    return 0;
}